/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package BUS;
import DAO.AcademicDAO;
import DTO.AcademicDTO;
import java.util.ArrayList;

/**
 *
 * @author QuangMinh
 */
public class AcademicBUS {
    public void addAcademic(AcademicDTO acdemic){
        AcademicDAO academicDAO = new AcademicDAO();
        academicDAO.addAcademic(acdemic);
    }
    public ArrayList<AcademicDTO> getAcademic(){
        AcademicDAO academicDAO= new AcademicDAO();
        ArrayList<AcademicDTO> academicDTO = new ArrayList<AcademicDTO>();
        academicDTO = academicDAO.getAca();
        return academicDTO;
    }

    public ArrayList<AcademicDTO> getAcademicByStuID(int stuID){
        AcademicDAO academicDAO= new AcademicDAO();
        ArrayList<AcademicDTO> academicDTO = new ArrayList<AcademicDTO>();
        academicDTO = academicDAO.getAcaByStuID(stuID);
        return academicDTO;
    }

    public AcademicDTO getAcademicByStuSubID(int stuID, String subID){
        AcademicDAO academicDAO= new AcademicDAO();
        AcademicDTO academicDTO = new AcademicDTO();
        academicDTO = academicDAO.getAcaByStuSubID(stuID, subID);
        return academicDTO;
    }
    public void delAcademic(int StuID, String subID){
        AcademicDAO academicDAO = new AcademicDAO();
        academicDAO.delAcademic(StuID, subID);
    }
    public void editAcademic(String batchName, String startDate, String endDate, int studentID, String subID){
        AcademicDAO academicDAO = new AcademicDAO();
        academicDAO.editAcademic(batchName, startDate, endDate, studentID, subID);
    }

}
